package com.ruoyi.constant;

/**
 * 处室标识枚举
 */
public enum RwjgEnum {

    YGJC(0, "否"),
    SSJ(1, "是"),
    SXHC(2, "不涉及");


    private Integer code;
    private String desc;

    RwjgEnum(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public Integer getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }

    public static String getDescByCode(Integer code) {
        for (RwjgEnum value : RwjgEnum.values()) {
            if (value.getCode().equals(code)) {
                return value.getDesc();
            }
        }
        return null;
    }



}